package com.oldbook.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.oldbook.manage.mapper.VStudentOrderDetailMapper;
import com.oldbook.manage.domain.VStudentOrderDetail;
import com.oldbook.manage.service.IVStudentOrderDetailService;

/**
 * 查看单个学生选订教材视图Service业务层处理
 * 
 * @author Exiaoke
 * @date 2025-02-19
 */
@Service
public class VStudentOrderDetailServiceImpl implements IVStudentOrderDetailService 
{
    @Autowired
    private VStudentOrderDetailMapper vStudentOrderDetailMapper;

    /**
     * 查询查看单个学生选订教材视图
     * 
     * @param 学号 查看单个学生选订教材视图主键
     * @return 查看单个学生选订教材视图
     */
    @Override
    public VStudentOrderDetail selectVStudentOrderDetailBy学号(String 学号)
    {
        return vStudentOrderDetailMapper.selectVStudentOrderDetailBy学号(学号);
    }

    /**
     * 查询查看单个学生选订教材视图列表
     * 
     * @param vStudentOrderDetail 查看单个学生选订教材视图
     * @return 查看单个学生选订教材视图
     */
    @Override
    public List<VStudentOrderDetail> selectVStudentOrderDetailList(VStudentOrderDetail vStudentOrderDetail)
    {
        return vStudentOrderDetailMapper.selectVStudentOrderDetailList(vStudentOrderDetail);
    }

    /**
     * 新增查看单个学生选订教材视图
     * 
     * @param vStudentOrderDetail 查看单个学生选订教材视图
     * @return 结果
     */
    @Override
    public int insertVStudentOrderDetail(VStudentOrderDetail vStudentOrderDetail)
    {
        return vStudentOrderDetailMapper.insertVStudentOrderDetail(vStudentOrderDetail);
    }

    /**
     * 修改查看单个学生选订教材视图
     * 
     * @param vStudentOrderDetail 查看单个学生选订教材视图
     * @return 结果
     */
    @Override
    public int updateVStudentOrderDetail(VStudentOrderDetail vStudentOrderDetail)
    {
        return vStudentOrderDetailMapper.updateVStudentOrderDetail(vStudentOrderDetail);
    }

    /**
     * 批量删除查看单个学生选订教材视图
     * 
     * @param 学号s 需要删除的查看单个学生选订教材视图主键
     * @return 结果
     */
    @Override
    public int deleteVStudentOrderDetailBy学号s(String[] 学号s)
    {
        return vStudentOrderDetailMapper.deleteVStudentOrderDetailBy学号s(学号s);
    }

    /**
     * 删除查看单个学生选订教材视图信息
     * 
     * @param 学号 查看单个学生选订教材视图主键
     * @return 结果
     */
    @Override
    public int deleteVStudentOrderDetailBy学号(String 学号)
    {
        return vStudentOrderDetailMapper.deleteVStudentOrderDetailBy学号(学号);
    }
}
